added temporary profiling on slide init, close the serial port on exit