@rayyanthameem You can remove the Close button by deleting the Mapping for the Close Ticket automation command.
To setup Automatic Print on payment:
Follow this for version 4:
Follow this for version 5:
To setup Automatic print on payment go to Manage > Settings > Configuration Tasks and run the Automatic Print on Payment task. You will probably want to disable the Print Bill button the same way you did the Close Ticket button as well since you wont need that.
When you run the task select your Payment Type and your Print Job. Run the task again for each payment type you use. Default Print Job is Print Bill